import service from '.'


const servicePartApi = {
    getListById(id){
        return service.get(`/admin/serviceParts/${id}`);
    },
    updateInfo(id,parts){
        return service.put('/admin/serviceParts',{id,parts});
    },
    getAllPartList() {
        return service.get('/admin/serviceParts/list');
    }
}

export default servicePartApi;